<?php
namespace ClubAPP\Controller;
use Think\Controller;
class CoachController extends Controller {
            public function coachlist(){
$coachmodel = M('coach');
        // 14110100412金永春
        $coach = $coachmodel->select();
        
        $this->coach=$coach;
      
        echo json_encode($coach);
    } 
            public function docoach($coach_id){
//     14110100412金永春
     $coachmodel = M('coach');
       
     $coach=$coachmodel->where("coach_id=$coach_id")->find();
     echo json_encode($coach);
      
  
    } 
}
?>